<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
    <link rel="stylesheet" href="css/register.css">
</head>
<body>
    <div class="frame">
        <div class="form-container">
            <div id="message" class="message"></div>

            <h2>注册</h2>
            <form id="register-form">
                <label for="register-username">用户名:</label>
                <input type="text" id="register-username" name="username">
                <label for="register-password">密码:</label>
                <input type="password" id="register-password" name="password">
                <label for="confirm-password">确认密码:</label>
                <input type="password" id="confirm-password" name="confirm-password">
                <button type="button" onclick="register()">注册</button>
                <div id="register-error" class="error-message"></div>
            </form>
            <p>已有账号？<a href="login.html">登录</a></p>
        </div>
    </div>
    <script src="js/register.js"></script>
</body>
</html>
